package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.result.PageResult;
import com.itheima.common.result.Result;
import com.itheima.dto.YddArticlePageQueryDTO;
import com.itheima.pojo.YddArticle;

public interface YddArticleService extends IService<YddArticle> {

    /**
     * 文章列表-分页
     * @param dto
     * @return
     */
    PageResult PageQuery(YddArticlePageQueryDTO dto);
    /**
     * 文章详情
     * @param id
     * @return
     */
    YddArticle rouInfoArticle(String id);
    /**
     * 文章添加
     * @param yddArticle
     * @return
     */
    Result addArticle(YddArticle yddArticle);
    /**
     * 文章修改
     * @param yddArticle
     * @return
     */
    Result updateArticle(YddArticle yddArticle);
}
